home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / jaz_clib.arc / JZPGECLR.C < prev    next >
Text File  |  1989-04-09  |  629b  |  22 lines

  1. /*
  2. ┌────────────────────────────────────────────────────────────────────────────┐
  3. │jzpgeclr.c                                     │
  4. │Clear the specified page with the specified attribute                 │
  5. │                                         │
  6. │ (C) JazSoft Software by Jack A. Zucker (301) 794-5950              │
  7. └────────────────────────────────────────────────────────────────────────────┘
  8. */
  9. jzpgeclr(fpage,fattr)
  10. int fpage,fattr;
  11. {
  12.   int far *screen = (int far *) 0xb8000000;
  13.   register wcharattr,w;
  14.  
  15.   wcharattr = fattr << 8 + 0x20;    /* space char with specified attribute*/
  16.  
  17.   screen += fpage * 2048;
  18.  
  19.   for (w = 0 ; w < 2000 ; w ++) *screen ++ = wcharattr;
  20. }
  21.  
  22.